"""
练习：
   写一段代码，拷贝a.txt,拷贝文件为 a_copy.txt
"""

# 1. 读取a.txt
with open('file/a.txt','r',encoding='utf-8') as f:
    # 2. 将读取出来的内容写出去
    with open('file/a_copy.txt','w',encoding='utf-8') as k:
        k.write(f.read())

print('拷贝完毕')